Leat\Domain\Services\LeatGiftCardManager D

Total Complexity 209
Dependencies 7
Dependents 1
Total lines 1,737
Lines of code 1,128
Logical lines of code 585
Comment lines 376
Methods 35
Properties 3

Methods 35

Method Rating Maintainability Complexity Lines of code
handle_refund()
B
32 20 111
handle_ajax_refund()
B
36 17 79
get_all_gift_cards_from_order()
B
42 16 52
display_total_in_admin_order_totals()
A
35 10 106
update_giftcard_balance_after_order()
A
40 10 66
add_gift_card_to_session_from_data()
A
38 7 72
render_gift_cards_content()
A
44 8 48
handle_cart_extension_update()
A
51 9 26
display_gift_cards_in_refund_overview()
A
46 8 41
ajax_add_gift_card_to_session()
A
45 8 40
revalidate_gift_card_balances()
A
49 8 30
display_gift_cards_in_order_totals()
S
50 7 27
render_gift_card_form()
S
46 6 40
calculate_order_totals()
S
54 7 22
display_gift_card_column()
S
53 6 23
init()
S
44 4 41
render_applied_gift_cards()
S
52 5 25
store_gift_card_info_in_order()
S
47 4 40
calculate_gift_card_on_totals()
S
52 5 23
update_gift_card_balance_in_session()
S
55 5 19
check_gift_card_balance()
S
50 4 29
add_gift_cards_meta_box()
S
54 4 23
remove_gift_card_from_session()
S
59 4 14
initialize_original_cart_total()
S
61 4 12
enqueue_scripts()
S
47 2 38
update_amount_used_per_gift_card_for_order_total()
S
58 3 15
ajax_get_applied_gift_cards()
S
58 3 14
ajax_remove_gift_card_from_session()
S
60 3 12
mask_gift_card_code()
S
67 3 7
render_gift_cards_meta_box_hpos()
S
69 2 7
include_admin_template()
S
68 2 7
destroy_cart_session()
S
72 2 6
__construct()
S
73 1 5
render_gift_cards_meta_box()
S
77 1 4
add_gift_card_column()
S
75 1 4